package org.carl.grpc.cloud.service.b

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cloud.client.discovery.EnableDiscoveryClient
import org.springframework.cloud.netflix.eureka.EnableEurekaClient
import org.springframework.context.annotation.ComponentScan

/**
 * email carl.chen@bk.ru
 * @Author: 陈青松
 * @Date: 2019/4/12 0:11
 */
@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
@ComponentScan(value = ["org.carl.grpc.cloud.service.b"])
class GrpcCloudServiceBApplication {
    companion object {
        @JvmStatic
        fun main(args: Array<String>) {
//            SpringApplication.run(GrpcCloudServiceBApplication::class.java, *args)
            runApplication<GrpcCloudServiceBApplication>(*args)
        }
    }
}
